import request from "@/util/request";
/**
 * @description 登录
 * @param data
 * @returns {*}
 */
export function login(data){
	return request({
		url:'/jiuquan/user/getOpenid',
		method:'GET',
		data
	})
}
export function savePhoneNumberByCode(data) {
	return request({
		url: '/jiuquan/user/getPhone',
		method: 'GET',
		data
	})
}
export function getUserInfoApi(data) {
	return request({
		url: '/jiuquan/user/getUserInfo',
		method: 'GET',
		data
	})
}


/**
 * @description 登录
 * @param data
 * @returns {*}
 */
export function getUserInfo(data){
	return request({
		url:'/jiuquan/user/getUserInfo',
		method:'GET',
		data
	})
}
/**
 * @description 修改用户信息
 * @returns {Promise}
 */

export function addAndUpdateUser(data) {
	return request({
		url: '/jiuquan/user/addAndUpdateUser',
		method: 'post',
		data
	}, true)
}